package com.ruoyi.lvlian.mapper;

import java.util.List;

import com.ruoyi.lvlian.domain.DriverInfo;
import com.ruoyi.lvlian.domain.WarehouseRef;
import com.ruoyi.lvlian.dto.WarehouseRefDto;
import com.ruoyi.lvlian.vo.ImagesVo;
import com.ruoyi.lvlian.vo.WarehouseRefVo;
import org.apache.ibatis.annotations.Param;

/**
 * 销售物流关联采购物流Mapper接口
 *
 * @author liyuxi
 * @date 2024-12-26
 */
public interface WarehouseRefMapper {
    /**
     * 查询销售物流关联采购物流
     *
     * @param id 销售物流关联采购物流主键
     * @return 销售物流关联采购物流
     */
    public WarehouseRef selectWarehouseRefById(String id);

    /**
     * 查询销售物流关联采购物流列表
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 销售物流关联采购物流集合
     */
    public List<WarehouseRefVo> selectWarehouseRefList(WarehouseRefDto warehouseRef);

    /**
     * 新增销售物流关联采购物流
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 结果
     */
    public int insertWarehouseRef(WarehouseRef warehouseRef);

    /**
     * 修改销售物流关联采购物流
     *
     * @param warehouseRef 销售物流关联采购物流
     * @return 结果
     */
    public int updateWarehouseRef(WarehouseRef warehouseRef);

    /**
     * 删除销售物流关联采购物流
     *
     * @param id 销售物流关联采购物流主键
     * @return 结果
     */
    public int deleteWarehouseRefById(String id);

    /**
     * 批量删除销售物流关联采购物流
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWarehouseRefByIds(String[] ids);

    int batchSave(@Param("dtoList") List<WarehouseRef> dtoList);

    ImagesVo querySellerImages(@Param("outNum") String outNum, @Param("sellerContractNum") String sellerContractNum, @Param("outDate") String outDate, @Param("col") String col);


    int syncImgs(@Param("inNum") String inNum,@Param("buyerContractNum")  String buyerContractNum,@Param("inDate")  String inDate, @Param("col") String col , @Param("v") String v );
}
